package com.risk.ctrl.enums;

import com.risk.ctrl.enums.service.EnumsBaseService;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Objects;
@AllArgsConstructor
@Getter
public enum ErrorCodeEnum implements EnumsBaseService {
    SUCCESS("200", "成功"),
    SERVICE_EXCEPTION("1001", "服务内部异常"),
    SPEL_EVAL_EXCEPTION("1002", "spel表达式({})有误"),
    PARAMS_EXCEPTION("1003", "参数校验失败"),
    JACKSON_SERIALISE_EXCEPTION("1009", "Jackson序列化异常"),
    JACKSON_DESERIALIZE_EXCEPTION("1010", "Jackson反序列化异常"),
    AUTH_FAIL_EXCEPTION("1012", "越权"),
    DATA_LOAD_EXCEPTION("1013", "数据加载异常"),
    OKHTTP_GET_EXCEPTION("1014", "okhttp get请求异常"),
    OKHTTP_POST_EXCEPTION("1015", "okhttp post请求异常"),
    SEARCHING("1100", "征信数据查询中"),
    SEARCH_NUMBER_NOT_EXIST("1101", "查询流水号不存在"),
    NO_CREDIT_DATA("1102", "无征信数据，查询历史已过期"),
    CREDIT_SEARCH_ERROR("1103", "征信数据查询错误"),
    NO_SEARCH_RESULT("1104", "查征请求异常，无查询数据"),
    SEARCHING_COST_FAIL("1105", "查询扣款失败"),
    SEARCHING_NUMBER_OVER_LIMIT("1107", "查询次数超限"),
    USER_IS_WHITE_USER("1108", "该用户为征信白户"),
    COMPRESS_ERROR("1109", "身份证照片压缩异常"),
    INTERFACE_ERROR("1110", "征信中心接口异常，请更换流水号 重新发起查询"),
    MONEY_NOT_ENOUGH("1111", "账户状态异常或余额不足"),
    OPERATION_FAILURE("1201", "操作失败"),
    SERVER_ERROR("1999", "服务状态异常"),
    DISALLOW_ACCESS("10002", "禁止访问"),
    PARAM_ERROR("10003", "参数异常"),
    PARAM_IS_EMPTY("14004", "请求参数为空"),
    PASSWORD_ERROR("14005", "密码错误"),
    INFORMATION_NOT_EXIST("14006", "信息不存在/查无数据"),
    NO_AUTHORITY("14007", "暂无权限查询/未配置相关权限"),
    AUTHORITY_FAILED("14009", "认证失败"),
    QUERY_LIMIT_EXCEEDED("14010", "查询超出限制"),
    QUERY_NO_DATA("14011", "查无数据"),
    DATA_EXCEPTION("14012", "数据异常，解析失败"),
    SIGN_FAILED("14013", "验签失败"),
    USER_NOT_EXIST("1B0001", "合作商户不存在"),
    REPORT_NOT_EXIST("1B0013", "报告尚未生成，请稍后重试"),
    RESULT_GET_FAIL("1B0015", "查询结果未获取成功"),
    REPORT_PARSE_ERROR("1B0016", "报告解析异常"),
    AUTH_QUERY_TIMEOUT("1112", "授权查询请求超时"),
    ;

    private String code;

    private String desc;


}
